package com.mason.csma.category.acts

import android.app.Application
import android.view.View
import androidx.lifecycle.LifecycleOwner
import com.imyyq.mvvm.base.AppBarBaseViewModel
import com.imyyq.mvvm.base.BaseModel
import com.mason.lib.common.base.app.MyCommonAppBarProcessor

class BuyingViewModel(app: Application) :
    AppBarBaseViewModel<BaseModel, MyCommonAppBarProcessor>(app) {

    override fun onCreate(owner: LifecycleOwner) {
        super.onCreate(owner)
        mAppBarProcessor.title.value = "我要求购"
        mAppBarProcessor.onAppBarRightBtnClick.set(onBack)
    }

    val onBack = View.OnClickListener {
        finish()
    }
}